﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.TemplateMethod.Interest
{
    /// <summary>
    /// 普通类
    /// </summary>
    public class GeneralMethod
    {
        /// <summary>
        /// 普通方法
        /// </summary>
        public void Show()
        {
            Console.WriteLine($"{nameof(GeneralMethod)}");
        }
    }

    /// <summary>
    /// 普通类的子类
    /// </summary>
    public class ChildGeneralMethod: GeneralMethod
    {
        /// <summary>
        /// 普通方法
        /// </summary>
        public void Show()
        {
            Console.WriteLine($"{nameof(ChildGeneralMethod)}");
        }
    }
}
